package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.Message;
import com.example.demo.vo.messageDetailVO;
import org.springframework.http.codec.ServerSentEvent;
import reactor.core.publisher.Flux;

import java.util.List;


public interface MessageService extends IService<Message> {

    List<messageDetailVO> getMessageDetail(Long userId,Long sessionId);

    Flux<ServerSentEvent<Object>> streamResponse(String message,Long sessionId,Boolean webSearch,String personal);


    //Flux<ServerSentEvent<Object>> streamResponseWithOutUserInfo(String message);
}
